<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysCustBean.id}"/>
		<f:event type="preRenderView" listener="#{sysCustBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys Cust"/>

	<ui:define name="header">
		Sys Cust
	</ui:define>

	<ui:define name="subheader">
		View existing Sys Cust
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysCustBeanSysCustSysCustStatus" value="Sys Cust Status:"/>
			<h:link id="sysCustBeanSysCustSysCustStatus" outcome="/form/sysCustStatus/view" value="#{sysCustBean.sysCust.sysCustStatus}">
				<f:param name="id" value="#{sysCustBean.sysCust.sysCustStatus.custStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustSysNameTitle" value="Sys Name Title:"/>
			<h:link id="sysCustBeanSysCustSysNameTitle" outcome="/form/sysNameTitle/view" value="#{sysCustBean.sysCust.sysNameTitle}">
				<f:param name="id" value="#{sysCustBean.sysCust.sysNameTitle.nameTitleNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustCustCode" value="Cust Code:"/>
			<h:outputText id="sysCustBeanSysCustCustCode" value="#{sysCustBean.sysCust.custCode}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustCreatedDate" value="Created Date:"/>
			<h:outputText id="sysCustBeanSysCustCreatedDate" value="#{sysCustBean.sysCust.createdDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustCustOccupationNo" value="Cust Occupation No:"/>
			<h:outputText id="sysCustBeanSysCustCustOccupationNo" value="#{sysCustBean.sysCust.custOccupationNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustCustGrpNo" value="Cust Grp No:"/>
			<h:outputText id="sysCustBeanSysCustCustGrpNo" value="#{sysCustBean.sysCust.custGrpNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustIdCardNo" value="Id Card No:"/>
			<h:outputText id="sysCustBeanSysCustIdCardNo" value="#{sysCustBean.sysCust.idCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustIdCardIssuedDate" value="Id Card Issued Date:"/>
			<h:outputText id="sysCustBeanSysCustIdCardIssuedDate" value="#{sysCustBean.sysCust.idCardIssuedDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustIdCardExpireDate" value="Id Card Expire Date:"/>
			<h:outputText id="sysCustBeanSysCustIdCardExpireDate" value="#{sysCustBean.sysCust.idCardExpireDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustIdCardIssuedAt" value="Id Card Issued At:"/>
			<h:outputText id="sysCustBeanSysCustIdCardIssuedAt" value="#{sysCustBean.sysCust.idCardIssuedAt}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustFirstName" value="First Name:"/>
			<h:outputText id="sysCustBeanSysCustFirstName" value="#{sysCustBean.sysCust.firstName}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustLastName" value="Last Name:"/>
			<h:outputText id="sysCustBeanSysCustLastName" value="#{sysCustBean.sysCust.lastName}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustSexNo" value="Sex No:"/>
			<h:outputText id="sysCustBeanSysCustSexNo" value="#{sysCustBean.sysCust.sexNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustBirthDate" value="Birth Date:"/>
			<h:outputText id="sysCustBeanSysCustBirthDate" value="#{sysCustBean.sysCust.birthDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddrNo" value="Addr No:"/>
			<h:outputText id="sysCustBeanSysCustAddrNo" value="#{sysCustBean.sysCust.addrNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddrMoo" value="Addr Moo:"/>
			<h:outputText id="sysCustBeanSysCustAddrMoo" value="#{sysCustBean.sysCust.addrMoo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddrBuilding" value="Addr Building:"/>
			<h:outputText id="sysCustBeanSysCustAddrBuilding" value="#{sysCustBean.sysCust.addrBuilding}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddrSoi" value="Addr Soi:"/>
			<h:outputText id="sysCustBeanSysCustAddrSoi" value="#{sysCustBean.sysCust.addrSoi}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddrRoad" value="Addr Road:"/>
			<h:outputText id="sysCustBeanSysCustAddrRoad" value="#{sysCustBean.sysCust.addrRoad}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr1" value="Addr 1:"/>
			<h:outputText id="sysCustBeanSysCustAddr1" value="#{sysCustBean.sysCust.addr1}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr2No" value="Addr 2No:"/>
			<h:outputText id="sysCustBeanSysCustAddr2No" value="#{sysCustBean.sysCust.addr2No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr3No" value="Addr 3No:"/>
			<h:outputText id="sysCustBeanSysCustAddr3No" value="#{sysCustBean.sysCust.addr3No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr4No" value="Addr 4No:"/>
			<h:outputText id="sysCustBeanSysCustAddr4No" value="#{sysCustBean.sysCust.addr4No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr4" value="Addr 4:"/>
			<h:outputText id="sysCustBeanSysCustAddr4" value="#{sysCustBean.sysCust.addr4}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAddr5" value="Addr 5:"/>
			<h:outputText id="sysCustBeanSysCustAddr5" value="#{sysCustBean.sysCust.addr5}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustPhoneNo" value="Phone No:"/>
			<h:outputText id="sysCustBeanSysCustPhoneNo" value="#{sysCustBean.sysCust.phoneNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustMobileNo" value="Mobile No:"/>
			<h:outputText id="sysCustBeanSysCustMobileNo" value="#{sysCustBean.sysCust.mobileNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustEmail" value="Email:"/>
			<h:outputText id="sysCustBeanSysCustEmail" value="#{sysCustBean.sysCust.email}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustIncomeLevelNo" value="Income Level No:"/>
			<h:outputText id="sysCustBeanSysCustIncomeLevelNo" value="#{sysCustBean.sysCust.incomeLevelNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustCustLoanContractStatusNo" value="Cust Loan Contract Status No:"/>
			<h:outputText id="sysCustBeanSysCustCustLoanContractStatusNo" value="#{sysCustBean.sysCust.custLoanContractStatusNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustRegDate" value="Reg Date:"/>
			<h:outputText id="sysCustBeanSysCustRegDate" value="#{sysCustBean.sysCust.regDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustRegOrgNo" value="Reg Org No:"/>
			<h:outputText id="sysCustBeanSysCustRegOrgNo" value="#{sysCustBean.sysCust.regOrgNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustComment" value="Comment:"/>
			<h:outputText id="sysCustBeanSysCustComment" value="#{sysCustBean.sysCust.comment}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeName" value="Office Name:"/>
			<h:outputText id="sysCustBeanSysCustOfficeName" value="#{sysCustBean.sysCust.officeName}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddrNo" value="Office Addr No:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddrNo" value="#{sysCustBean.sysCust.officeAddrNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddrMoo" value="Office Addr Moo:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddrMoo" value="#{sysCustBean.sysCust.officeAddrMoo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddrBuilding" value="Office Addr Building:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddrBuilding" value="#{sysCustBean.sysCust.officeAddrBuilding}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddrSoi" value="Office Addr Soi:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddrSoi" value="#{sysCustBean.sysCust.officeAddrSoi}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddrRoad" value="Office Addr Road:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddrRoad" value="#{sysCustBean.sysCust.officeAddrRoad}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddr1" value="Office Addr 1:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddr1" value="#{sysCustBean.sysCust.officeAddr1}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddr2No" value="Office Addr 2No:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddr2No" value="#{sysCustBean.sysCust.officeAddr2No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddr3No" value="Office Addr 3No:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddr3No" value="#{sysCustBean.sysCust.officeAddr3No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddr4No" value="Office Addr 4No:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddr4No" value="#{sysCustBean.sysCust.officeAddr4No}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficeAddr5" value="Office Addr 5:"/>
			<h:outputText id="sysCustBeanSysCustOfficeAddr5" value="#{sysCustBean.sysCust.officeAddr5}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustOfficePhoneNo" value="Office Phone No:"/>
			<h:outputText id="sysCustBeanSysCustOfficePhoneNo" value="#{sysCustBean.sysCust.officePhoneNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustAname1" value="Aname 1:"/>
			<h:outputText id="sysCustBeanSysCustAname1" value="#{sysCustBean.sysCust.aname1}"/>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustSysCustBlacklists" value="Sys Cust Blacklists:"/>
			<h:dataTable id="sysCustBeanSysCustSysCustBlacklists" styleClass="data-table" value="#{forgeview:asList(sysCustBean.sysCust.sysCustBlacklists)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Cust Blacklist Type"/>
					</f:facet>
					<h:link outcome="/form/sysCustBlacklist/view">
						<f:param name="id" value="#{_item.blNo}"/>
						<h:outputText id="forgeviewdisplayitemSysCustBlacklistType" value="#{forgeview:display(_item.sysCustBlacklistType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bl Org No"/>
					</f:facet>
					<h:link outcome="/form/sysCustBlacklist/view">
						<f:param name="id" value="#{_item.blNo}"/>
						<h:outputText id="itemBlOrgNo" value="#{_item.blOrgNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bl Date"/>
					</f:facet>
					<h:link outcome="/form/sysCustBlacklist/view">
						<f:param name="id" value="#{_item.blNo}"/>
						<h:outputText id="itemBlDate" value="#{_item.blDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bl Comment"/>
					</f:facet>
					<h:link outcome="/form/sysCustBlacklist/view">
						<f:param name="id" value="#{_item.blNo}"/>
						<h:outputText id="itemBlComment" value="#{_item.blComment}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Bl Is Cancel Status"/>
					</f:facet>
					<h:link outcome="/form/sysCustBlacklist/view">
						<f:param name="id" value="#{_item.blNo}"/>
						<h:outputText id="itemBlIsCancelStatus" value="#{_item.blIsCancelStatus}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustSaleLoanOffers" value="Sale Loan Offers:"/>
			<h:dataTable id="sysCustBeanSysCustSaleLoanOffers" styleClass="data-table" value="#{forgeview:asList(sysCustBean.sysCust.saleLoanOffers)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rec No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanOffer/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="itemRecNo" value="#{_item.recNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Loan Type No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanOffer/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="itemLoanTypeNo" value="#{_item.loanTypeNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysCustBeanSysCustSaleLoanContracts" value="Sale Loan Contracts:"/>
			<h:dataTable id="sysCustBeanSysCustSaleLoanContracts" styleClass="data-table" value="#{forgeview:asList(sysCustBean.sysCust.saleLoanContracts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Hr Emp"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Vehicle Brand"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysVehicleBrand" value="#{forgeview:display(_item.sysVehicleBrand)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sale Loan Grade"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSaleLoanGrade" value="#{forgeview:display(_item.saleLoanGrade)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Income Level"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContract/view">
						<f:param name="id" value="#{_item.recNo}"/>
						<h:outputText id="forgeviewdisplayitemSysIncomeLevel" value="#{forgeview:display(_item.sysIncomeLevel)}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>